package com.whfc.fvs.enums;

/**
 * @Description:
 * @author: qzexing
 * @version: 1.0
 * @date: 2020/4/14 17:59
 */
@Deprecated
public enum FvsBizType {

    FMAM(1, "物资管理"),

    FIM(2, "智能监控"),

    FSE_CRANE(3, "塔机监控"),

    FSE_LIFT(4, "升降机监控"),

    OTHER(99, "其它");

    private Integer value;

    private String desc;

    FvsBizType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static FvsBizType parseValue(Integer value) {
        FvsBizType bizType = null;
        switch (value) {
            case 1:
                bizType = FMAM;
                break;
            case 2:
                bizType = FIM;
                break;
            case 3:
                bizType = FSE_CRANE;
                break;
            case 4:
                bizType = FSE_LIFT;
                break;
            case 99:
                bizType = OTHER;
                break;
            default:
                break;
        }
        return bizType;
    }
}
